




int append(int l[200],int q)
{

int x,i;

printf("Enter the element to be appended\n");
scanf("%d",&x);
l[q]= x;
printf("array :\n");
for (i=0;i<q+1;i++)
{
printf("%d",l[i]);
}}



int reverse(int l[200],int q)
{
int i;
printf(" array :\n");
for (i=q-1;i>=0;i--)
{
printf("%d",l[i]);
}
}




int inde(int l[200],int q)
{
int   z,i          ;
printf("Enter the no. whose 1st position you want to know:\n")
scanf("%d",&z);

for(i=0,i<q,i++)
{
if{
l[i]==z
break;
printf("%d",i);
}}






int insert(int l[200],int q)
{
int z;
printf("Enter the position where u want to insert:\n")
scanf("%d",&z);

/*increase size  +1  */

for(i=q,i>z,i--)
{
l[i]=l[i-1]
}

printf("Enter the number u want to insert:\n")
scanf("%d",&p);

l[z-1]=p;

printf("array is:\n");
for (i=0;i<q+1;i++)
printf("%d",l[i]);
}





int count(int l[200],int q)
{
int i,z,count=0;
printf("Enter the element you want to check for no. of occurences:\n")
scanf("%d",&z);

for(i=0,i<q,i++)
{
if
{
l[i]=z
count+=1
}}

printf("Count=%d",count);

}




int remov(int l[200], int q)

int i,z,c;
printf("Enter the element you want to remove once:\n")
scanf("%d",&z);

for(i=0,i<q,i++)
{
if
{
l[i]=z
c=i;                              /*c is the position*/
break
}}

for(i=c;i<q-1,i++)
{l[i]=l[i+1]}


printf("Final Array:\n");
for (i=0;i<q-1;i++)
{
printf("%d",l[i]);

/*Reduce size by 1*/





int pop(int l[200],int q)

int i,z,j;
printf("Enter the position:\n")
scanf("%d",&z);


for(j=z;j<=q-1;j++)
{
a[j]=a[j+1];
}

printf("Final Array is:");
for (i=0;i<q;i++)
{
printf("%d ",l[i]);
}

_____________________________________________________________
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=


int extend(int l[],int q)
{
int i,y;
printf("Enter the number of elements you want to extend");
scanf("%d",&y);
for(i=q;i<q+y;i++)
{
printf("Enter the elements");
scanf("%d",&l[i]);
}
printf("array is:");
for (i=0;i<q+y;i++)
{
printf("%d",a[i]);
}
}












#include<stdio.h>

void main()
{


int l[200],q,i,n;

printf("enter length");
scanf("%d",&q);


for (i=0;i<q;i++)
{
printf("Enter the elements\n");
scanf("%d",&l[i]);
}

printf("1=append 2=sort 3=reverse 4=index 5=insert 6=count 7=remove 8=pop 9=extend\n");

switch(n){
case 1: append(l,q);
	break;
case 2: sort(l);
	break;
case 3: reverse(l,q);
	break;
case 4:	index(l,q);
	break;
case 5: insert(l,q);
	break;
case 6: count(l,q);
	break;
case 7: remov(l,q);
	break;
case 8: pop(l,q);
	break;
case 9: extend(l,q);
	break;
}


}